<HTML>
    <%@include file="/WEB-INF/jsp/taglibs.jsp"%>
    <%@page import="org.jlis.core.bean.*"%>
    <%@page import="org.jlis.core.util.*"%>
    <HEAD>
    <TITLE>SIGA-PER</TITLE>
    </HEAD>
<%
    Usuario usuario = (Usuario)session.getAttribute(Constantes.USUARIO);
    //System.out.println("Entro a index******* ");
%>
    <SCRIPT>
        window.name = '<%=(contextName+"_"+session.getId())%>';
    </SCRIPT>
    <FRAMESET border='0' frameSpacing='0' rows='50,*' frameBorder='0'>
            <FRAME id='cabecera' name='cabecera' marginWidth='0' marginHeight='0' src="cabecera.jsp" noResize scrolling='no' >
<%  if (session!=null) {
        if (usuario!=null){%>
            <FRAME id='main' name='main' marginWidth='0' marginHeight='0' src="principal.jsp">
<%      } else {%>
            <FRAME id='main' name='main' marginWidth='0' marginHeight='0' src="login.jsp">
<%      }
    }%>
      <NOFRAMES>
          <body bgColor=Gray>
              <p>This page uses frames, but your browser doesn't support them.</p>
          </body>
      </NOFRAMES>
    </FRAMESET>
</HTML>
